package com.mz.mattress.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mz.mattress.api.common.BaseEntity;
import com.mz.mattress.api.util.IdUtil;
import lombok.Data;

/**
 * 设备
 */
@Data
@TableName("mz_device")
public class Device extends BaseEntity {

    private Integer id;

    //省
    @TableField(exist = false)
    private String province;

    //市
    @TableField(exist = false)
    private String city;

    //区
    @TableField(exist = false)
    private String district;

    //memberMerId 0是平台
    private Long memberId;

    //商家ID  0是平台
    private Integer merchantId;

    //商家名
    private String merchantName;

    //一级销售员id
    private Integer topSaleId;

    //当前销售ID
    private Integer saleId;

    //投资商ID
    private Integer investorId;

    //设备名称
    private String name;

    //设备号
    private String deviceCode;

    //系列号
    private String productKey;

    //是否启用 0正常 1停用
    private Integer status;

    //1online在线 0offline离线
    private Integer online;

    //信号值 0差 1良好 2优
    private Integer signals;

    //工作模式
    private Integer workMode;

    //工作状态 1已启动 0未启动  不能为空
    private Integer workStatus;

    //被占用的 次数 ID
    private Integer timesId;

    //检测状态 0未检测 1检测中 2数据异常 3未检测到数据
    private Integer inspectStatus;

    //上次心跳包时间
    private String lastHeart;

    //绑定时间
    private String bindTime;

    //离线时间
    private String offTime;

    //设置温度 温度强度范围：0-65
    private Integer temper;

    //当前温度
    private Integer temperCur;

    //按摩强度 共振强度范围：0-10
    private Integer strength;

    //音量 音量大小范围：0-10
    private Integer volume;

    //微信小程序二维码图片
    private String wxUrl;

    //
    private Integer demo;

    public static void main(String[] args) {

        int ff = 0x14141414;

        System.out.println(ff);

        System.out.println("67f7394cb92ce8bf0d68595c".length());

        for (int i = 0; i < 20; i++) {

            String substring = IdUtil.uuid().substring(0, 24);
            System.out.println(substring);
            System.out.println(substring.length());

        }


    }

}
